<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
    <link rel="stylesheet" href="http://at.alicdn.com/t/font_2325130_l3vwgjpuxte.css">
    
    <title><%= htmlWebpackPlugin.options.title %></title>
  </head>
  <body>
    <noscript>
      <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected -->
    <script>
      (function(){
        window.addEventListener('load',function(){
          var app = document.getElementById('app')
          app.style.width="100%"
          app.style.height="100%"
          getRem(1920,100)
        })
        window.addEventListener('resize',function(){
          var app = document.getElementById('app')
          app.style.height="100%"
          app.style.width="100%"
          getRem(1920,100)
        })
        function getRem(pwidth,prem){
          var html = document.getElementsByTagName("html")[0];
          var oWidth = document.body.clientWidth || document.documentElement.clientWidth;
          html.style.fontSize = oWidth/pwidth*prem + "px";
        }
      })()
    </script>
  </body>
</html>


<!-- <!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
    <link rel="stylesheet" href="http://at.alicdn.com/t/font_2325130_k70zb2mt9d.css">
    
    <title><%= htmlWebpackPlugin.options.title %></title>
  </head>
  <body>
    <noscript>
      <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
    </noscript>
    <div id="app"></div>
    <script>
      (function(){
        window.addEventListener('load',function(){
          var app = document.getElementById('app')
          app.style.width="100%"
					app.style.height="100%"
          // app.style.height=app.offsetWidth * 1080 / 1920 + "px"
          getRem(1920,100)
        })
        window.addEventListener('resize',function(){
          var app = document.getElementById('app')
          app.style.width="100%"
					app.style.height="100%"
          // app.style.height=app.offsetWidth * 1080 / 1920 + "px"
          getRem(1920,100)
        })
        function getRem(pwidth,prem){
          var html = document.getElementsByTagName("html")[0];
          var oWidth = document.body.clientWidth || document.documentElement.clientWidth;
          html.style.fontSize = oWidth/pwidth*prem + "px";
        }
      })()
    </script>
  </body>
</html> -->
